package com.yyn.Learning.service;

import com.yyn.Learning.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yyn.Learning.entity.Subject.OneLevel;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author yyn
 * @since 2022-11-22
 */
public interface EduChapterService extends IService<EduChapter> {
    //    增
    void saveChapter(EduChapter eduChapter);

    //    删
    Boolean removeChapter(String id);

    //    改
    void updateChapter(EduChapter eduChapter);

    //    查
    void getAllChapter();

    //    根据id查
    EduChapter getOneChapter(String id);

    //tree格式
    List getChapterTree(String id);

    void removeByCourseId(String courseId);
}
